package live.zs.validation;


import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;

/**
 * @author madison
 * @description
 * @date 2022/2/4 14:36
 */
public class Book {
    @NotBlank(message = "Title cannot be blank")
    public String title;
    @NotBlank(message = "Author cannot be blank")
    public String author;
    @Min(message = "Author has been very lazy", value = 1)
    public double pages;
}
